package sv.gob.mh.dgii.html.editor;

import java.beans.PropertyEditorSupport;
import sv.gob.mh.dgii.common.Utils;

public class SiitEditor extends PropertyEditorSupport {

    protected String format = "dd/MM/yyyy";

    public SiitEditor() {
    }

    public SiitEditor(String format) {
        if (!Utils.isNullOrEmpty(format)) {
            this.format = format;
        }
    }

    /**
     * @return the format
     */
    public String getFormat() {
        return format;
    }

    /**
     * @param format the format to set
     */
    public void setFormat(String format) {
        this.format = format;
    }
}
